#ifndef POSTAC_HPP
#define POSTAC_HPP

class Postac
{
protected:

    int str, dex, hp, exp, lvl;
    string name;
    int x, y;



public:

    void SetValue(char a, int b)
    {
        switch (a)
        {
        case 's': str = b; break;
        case 'd': dex = b; break;
        case 'h': hp = b; break;
        case 'e': exp = b; break;
        case 'l': lvl = b; break;
        case 'x': x = b; break;
        case 'y': y = b; break;
        }
    }



    void AddToValue(char a, int b)
    {
        switch (a)
        {
        case 's': str = str + b; break;
        case 'd': dex = dex + b; break;
        case 'h': hp = hp + b; break;
        case 'e': exp = exp + b; break;
        case 'l': lvl = lvl + b; break;
        case 'x': x = x + b; break;
        case 'y': y = y + b; break;
        }
    }



    void SetName(string x)
    {
        name = x;
    }



    int RAttributes(char x)
    {
        switch (x)
        {
        case 's': return str; break;
        case 'd': return dex; break;
        case 'h': return hp; break;
        case 'e': return exp; break;
        case 'l': return lvl; break;
        default: return 0;
        }
    }



    string RName()
    {
        return name;
    }



    int getX()
    {
        return x;
    }



    int getY()
    {
        return y;
    }
};

#endif // POSTAC_HPP
